﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Clipboard.Model.Enum;
using Clipboard.Model.Entities;
using Clipboard.Model.Interface;

namespace Clipboard.Model
{
    public class AuthAccount : Entity<int>, ICreatedTime,IUpdatedTime
    {
        /// <summary>
        /// 授权唯一标识
        /// </summary>
        public string OAuthId { get; set; }

        /// <summary>
        /// 授权类型
        /// </summary>
        public string Type { get; set; }


        /// <summary>
        /// 姓名（昵称）
        /// </summary>
        [SugarColumn(Length = 64)]
        public string? Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public Gender Gender { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [SugarColumn(Length = 256)]
        public string? Avatar { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [SugarColumn(Length = 128)]
        public string? Email { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 标记删除
        /// </summary>
        public bool DeleteMark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }


        /// <summary>
        /// 最后登录ip
        /// </summary>
        public string Ip { get; set; }

        /// <summary>
        /// 最后登录ip
        /// </summary>
        public string LastLoginAddress { get; set; }


        /// <summary>
        /// 密码
        /// </summary>
        [SugarColumn(Length = 128)]
        public string? Password { get; set; }

    }
}
